package com.baizhi.service;

import com.baizhi.entity.Book;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BookService {
    PageInfo<Book> showPageBooks(Integer pageNum,Integer pageSize,String query,String value);
    Book showOne(Integer id);
    void addBook(Book book);
    void updateBook(Book book);
    void removeBook(Integer id);
    List<Book> recommends();
    List<Book> hotSale();
    List<Book> newBooks();
    List<Book> newHotBooks();
    PageInfo<Book> selectBooks(Integer pageNum,Integer pageSize,String value);
    PageInfo<Book> selectBookByCategoryId(Integer pageNum,Integer pageSize,Integer fid,Integer sid);
}
